<extend name="Public/base"/>

<block name="body">
    <div class="main-title">
        <h2>新增商品分类</h2>
    </div>
    <form action="{:U()}" method="post" class="form-horizontal">
        <div class="form-item">
            <label class="item-label">分类名称<span class="check-tips"></span></label>
            <div class="controls">
                <input type="text" class="text input-large" name="catname" value="">
            </div>
        </div>
        <div class="form-item">
            <label class="item-label">顶级分类<span class="check-tips"></span></label>
            <div class="controls">
                <input type="text" class="text input-large" name="pid" value="">
            </div>
        </div>
        <div class="form-item">
            <label class="item-label">数量单位<span class="check-tips"></span></label>
            <div class="controls">
                <input type="text" class="text input-large" name="unit" value="">
            </div>
        </div>
        <div class="form-item">
            <label class="item-label">排序<span class="check-tips"></span></label>
            <div class="controls">
                <input type="text" class="text input-large" name="sort" value="">
            </div>
        </div>
        <div class="form-item cf">
            <label class="item-label">是否显示<span class="check-tips"></span></label>
            <div class="controls">
                <label class="radio">
                    <input type="radio" class="" name="isshow" value="1" checked> 是
                </label>
                <label class="radio">
                    <input type="radio" class=" " name="isshow" value="0"> 否
                </label>
            </div>
        </div>
        <div class="form-item cf">
            <label class="item-label">是否显示在导航栏<span class="check-tips"></span></label>
            <div class="controls">
                <label class="radio">
                    <input type="radio" class="" name="isnav" value="1" > 是
                </label>
                <label class="radio">
                    <input type="radio" class=" " name="isnav" value="0" checked> 否
                </label>
            </div>
        </div>
        <div class="form-item cf">
            <label class="item-label">设为首页推荐<span class="check-tips"></span></label>
            <div class="controls">
                <label class="checkbox">
                    <input type="checkbox" class="" name="enabled" value="1" checked> 精品
                </label>
                <label class="checkbox">
                    <input type="checkbox" class=" " name="enabled" value="0"> 最新
                </label>
                <label class="checkbox">
                    <input type="checkbox" class=" " name="enabled" value="0"> 热门
                </label>
            </div>
        </div>
        <div class="form-item cf">
            <label class="item-label">筛选属性<span class="check-tips">筛选属性可在前分类页面筛选商品</span></label>
            <div class="controls">
                <select name="good_cat">
                    <option>请选择商品类型</option>
                </select>
                <select name="good_attr">
                    <option>请选择筛选属性</option>
                </select>
            </div>
        </div>
        <div class="form-item cf">
            <label class="item-label">价格区间个数<span class="check-tips">该选项表示该分类下商品最低价与最高价之间的划分的等级个数，填0表示不做分级，最多不能超过10个。</span></label>
            <div class="controls">
                <input type="text" class="text input-large" name="grade" value="">
            </div>
        </div>
        <div class="form-item">
            <label class="item-label">分类样式表文件<span class="check-tips">您可以为每一个商品分类指定一个样式表文件。例如文件存放在 themes 目录下则输入：themes/style.css</span></label>
            <div class="controls">
                <input type="text" class="text input-large" name="style" value="">
            </div>
        </div>
         <div class="form-item">
            <label class="item-label">关键字<span class="check-tips"></span></label>
            <div class="controls">
                <input type="text" class="text input-large" name="keyword" value="">
            </div>
        </div>
        <div class="form-item">
            <label class="item-label">分类描述</label>
            <div class="controls">
                <textarea name="desc" cols="40" rows="5">
                    
                </textarea>
               
            </div>
        </div>
        <div class="form-item">
            <button class="btn submit-btn ajax-post" id="submit" type="submit" target-form="form-horizontal">确 定</button>
            <button class="btn btn-return" onclick="javascript:history.back(-1);return false;">返 回</button>
        </div>
    </form>
</block>

<block name="script">
    <script type="text/javascript">
        //导航高亮
        highlight_subnav('{:U('User/index')}');
    </script>
</block>
